<?php defined('SYSPATH') OR die('No direct access allowed.');

class Fitness_Controller extends Template_Controller 
{
	public $template = 'home';
	public $content = 'home_content';

	public function __construct()
	{
		parent::__construct();
		$this->template->title = '来健身--为您提供最佳的免费健身服务';
		$this->template->header->current_show = 1;

		$this->session= Session::instance();
		$authentic=new Auth;
		if (!$authentic->logged_in())
		{
			$this->session->set("requested_url","/".url::current());
		}
	}

	public function index()
	{
		$all_gym = ORM::factory('gym')->get_all_gym_in_sold();
		$this->template->content->set("all_gym", $all_gym);
	}
}
